package com.itheima.array;

public class Demo3 {
    public static void main(String[] args) {
        /*
        * 浅拷贝
        * */
        int[] arr1 = {1, 2, 3};
        int[] arr2 = arr1;
        System.out.println(arr1[0]);
        System.out.println(arr1[1]);

        arr2[1] = 4;
        System.out.println(arr1[1]);
        System.out.println(arr2[1]);
    }
}
